from django.conf.urls.defaults import *
from mysite.views import hello,welcome,current_time,hours_ahead,book,send_mail
from mysite.books.views import search_form,search
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    #(r'^admin/', include(admin.site.urls)),
     (r'^hello/',hello),
     (r'^$',welcome),
     (r'^time/$',current_time),
     (r'^now/$',current_time),
     (r'^book/$',book),
     (r'^time/plus/(\d{1,2})/$',hours_ahead),
     (r'^admin/', include(admin.site.urls)),
     (r'^search-form/$',search_form),
     (r'^search/$', search),

)
